// index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    menuitems: [{
      url: "pages/pagenav/pagenav",
      title: '跨页旅行',
      info: '页面路由API'
    }, {
      url:"pages/article/article",
      title: '文章列表/收藏',
      info: '服务器/交互/缓存API'
    }, {
      url:"pages/album/album",
      title: '精选相册',
      info: '图片处理API'
    }, {
      url:"pages/downloading/downloading",
      title: '下载进度条',
      info: '文件上传下载API'
    }, {
      url:"pages/whereami/whereami",
      title: '我在哪儿？',
      info: '位置信息API'
    }, {
      url: "pages/sloper/sloper",
      title: '坡度计',
      info: '加速度计API'
    }, {
      url:"pages/compass/compass",
      title: '指南针',
      info: '罗盘API'
    }, {
      url:"pages/doodle/doodle",
      title: '音乐涂鸦',
      info: '画布和音乐API'
    }]
  },

  /**
   * 链接到新页面
   */
  navto: function (e) {
    var item = e.currentTarget.dataset.item
    wx.navigateTo({
      url: "/" + item.url,
    })
  },
})